<template>
  <div id="outer">
    <Tap title="美食">
      <template v-slot:content>
        <img
          width="280px"
          src="https://img0.baidu.com/it/u=2365144078,1664837876&fm=253&fmt=auto&app=138&f=JPEG?w=540&h=360"
          alt=""
        />
      </template>
    </Tap>
    <Tap title="游戏">
      <template v-slot:content>
        <ul>
          <li v-for="item in gameInfo" :key="item.id">{{ item.name }}</li>
        </ul>
      </template>
    </Tap>
    <Tap title="电视">
      <template v-slot:content>
        <a href="###">wqeqwda</a>
      </template>
    </Tap>
  </div>
</template>

<script>
import Tap from "./cpmponents/Tap";
import { v4 as uuidv4 } from "uuid";
export default {
  name: "App",
  components: {
    Tap,
  },
  data() {
    return {
      gameInfo: [
        { id: uuidv4(), name: "王者荣耀" },
        { id: uuidv4(), name: "闪耀暖暖" },
        { id: uuidv4(), name: "阴阳师" },
      ],
    };
  },
};
</script>

<style>
#outer {
  /* width: 300px; */
  height: 400px;
  display: flex;
  justify-content: space-evenly;
}
</style>